using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
using GDGeek;

namespace Shows_3D
{
    public static class TransformRoundingReaderWriter
    {
        public static void WriteTransformRoundingData(this NetworkWriter writer, TransformRounding transform)
        {
            writer.Write(transform.position);
            writer.Write(transform.angle);
            writer.Write(transform.scale);
            writer.WriteBoolean(transform.active);
        }

        public static TransformRounding ReadTransformRoundingData(this NetworkReader reader)
        {
            return new TransformRounding(reader.Read<Vector3Rounding>(), reader.Read<Vector3Rounding>(), reader.Read<Vector3Rounding>(),reader.ReadBoolean());
        }
    }
}